sed -i 's/ansibleWorker.celeryconfig/celeryconfig/g' ansibleapi.py
sed -i 's/ansibleWorker.celeryconfig/celeryconfig/g' ansibleworker.py
sed -i 's/ansibleWorker.ansibleapi/ansibleapi/g' ansibleworker.py
export PYTHONOPTIMIZE=1

#-Q 跟队列名，需要保持与界面worker配置一致，相应命令才能执行。
celery multi start 1 -A ansibleworker -l info -c4 -Q MYTEST --pidfile=tmp/celery_%n.pid -f logs/celery.log
